package com.liangzhong.model.activity.christmas
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

	/**
	 *圣诞节vo 
	 * @author lake
	 * 
	 */	
	public class ChristmasVo extends EventDispatcher
	{
		/**
		 *雪球数 
		 */		
		public var snowballs 		:int  ;
		/**
		 *奖励 
		 */		
		public var awards			:Array = [{id:61,type:6},{id:59,type:6},{id:6,type:6},{id:3,type:7},{id:27,type:6}];
		
		public function ChristmasVo()
		{
			
		}
		/**
		 *解析数据 
		 * @param obj
		 * 
		 */		
		public function parse(obj :Object):void
		{
			snowballs = obj.snowballs;
			this.dispatchEvent(new Event(Event.CHANGE));
		}
		/**
		 *设置雪球数 
		 * @param value
		 * 
		 */		
		public function setSnowballs(value :int):void
		{
			snowballs = value;
			this.dispatchEvent(new Event(Event.CHANGE));
		}
	}
}